/*
 * @Author: H
 * @Last Modified by: H
 * Description:
    dialog按钮展示组件
 */
<template>
  <div class="btnBox-btn">
    <el-button
      v-for="(item, index) in btnConfig"
      :key="index"
      class="pms-zr-button-primary"
      size="small"
      @click="handleClick(item.fun)"
    >
      {{ item.label }}
    </el-button>
  </div>
</template>

<script>

export default {
    name: 'TButton',
    props: {
        btnConfig: {
            type: Array,
            require: true,
            deep: true,
            default: () => []
        }
    },
    methods: {
        handleClick(fun) {
            this.$emit('propClick', fun)
        }
    }
}
</script>

<style lang="scss" scoped>
.btnBox-btn {
        width: 100%;
    }
::v-deep .pms-button-primary {
    color: #fff;
}
</style>
